package com.lyy.blog.service;

import com.lyy.blog.po.tag;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

public interface tagsservice {
    tag saveTag(tag tag);

    tag getTag(Long id);

    tag getTagByName(String name);

    Page<tag> listTag(Pageable pageable);

    List<tag> listTag();

    List<tag> listTag(String ids);

    tag updateTag(Long id, tag tag);

    void deleteTag(Long id);

    List<tag> listtag();

    List<tag> listtagtop(Integer size);


}
